package com.yfqy.admin.service.impl;

import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import com.yfqy.admin.domain.entity.CategoryAttribute;
import com.yfqy.admin.domain.mapper.CategoryAttributeMapper;
import com.yfqy.admin.service.CategoryAttributeService;

@Service
public class CategoryAttributeServiceImpl implements CategoryAttributeService {

    @Resource
    private CategoryAttributeMapper categoryAttributeMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return categoryAttributeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CategoryAttribute record) {
        return categoryAttributeMapper.insert(record);
    }

    @Override
    public int insertSelective(CategoryAttribute record) {
        return categoryAttributeMapper.insertSelective(record);
    }

    @Override
    public CategoryAttribute selectByPrimaryKey(Long id) {
        return categoryAttributeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(CategoryAttribute record) {
        return categoryAttributeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CategoryAttribute record) {
        return categoryAttributeMapper.updateByPrimaryKey(record);
    }

}
